/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * uberGUI.java
 *
 * Created on Mar 30, 2010, 1:54:16 PM
 */

package uberGUI;

import Message.Message;
import java.awt.event.ActionEvent;
import java.util.Observable;
import java.util.Observer;
import javax.swing.JOptionPane;
import persistence.mysqlAdapter;
import java.sql.Date;

/**
 *
 * @author mmcfadye
 */
public class uberGUI extends javax.swing.JFrame implements Observer{
    mysqlAdapter dba;
    /** Creates new form uberGUI */
    public uberGUI() {
        initComponents();
        dba = new mysqlAdapter();
        dba.addObserver(this);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar2 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();
        mainDesktopFrame = new javax.swing.JDesktopPane();
        addLeagueFrame = new javax.swing.JInternalFrame();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        newLeagueIDTextField = new javax.swing.JTextField();
        newLeagueNameTextField = new javax.swing.JTextField();
        newLeagueSalaryCapTextField = new javax.swing.JTextField();
        newLeagueRosterSizeTextField = new javax.swing.JTextField();
        addNewLeagueButton = new javax.swing.JButton();
        addScoutingReportFrame = new javax.swing.JInternalFrame();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        newScoutingReportScoutIDTextField = new javax.swing.JTextField();
        newScoutingReportHockeySenseTextField = new javax.swing.JTextField();
        newScoutingReportPuckhandlingTextField = new javax.swing.JTextField();
        newScoutingReportDefenseTextField = new javax.swing.JTextField();
        newScoutingReportShotTextField = new javax.swing.JTextField();
        newScoutingReportPlayerIDTextField = new javax.swing.JTextField();
        newScoutingReportPoiseTextField = new javax.swing.JTextField();
        newScoutingReportSizeTextField = new javax.swing.JTextField();
        newScoutingReportLeadershipTextField = new javax.swing.JTextField();
        newScoutingReportSkatingTextField = new javax.swing.JTextField();
        addScoutingReportButton = new javax.swing.JButton();
        newScoutingReportPotentialTextField = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        viewScoutingReportFrame = new javax.swing.JInternalFrame();
        jLabel16 = new javax.swing.JLabel();
        viewScoutingReportsPlayerIDTextField = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        viewScoutingReportsTextArea = new javax.swing.JTextArea();
        getScoutingReportsButton = new javax.swing.JButton();
        retirePlayerFrame = new javax.swing.JInternalFrame();
        playerRetirementPlayerIDTextField = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        retirePlayerButton = new javax.swing.JButton();
        hireStaffFrame = new javax.swing.JInternalFrame();
        hireStaffTeamIDTextField = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        hireStaffStaffIDTextField = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        hireStaffMonthTextField = new javax.swing.JTextField();
        hireStaffDayTextField = new javax.swing.JTextField();
        hireStaffYearTextField = new javax.swing.JTextField();
        hireStaffSalaryTextField = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        hireStaffButton = new javax.swing.JButton();
        viewTeamStaffFrame = new javax.swing.JInternalFrame();
        jLabel22 = new javax.swing.JLabel();
        viewTeamStaffTeamIDTextField = new javax.swing.JTextField();
        viewTeamStaffButton = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        viewTeamStaffTextArea = new javax.swing.JTextArea();
        updateLeagueSalaryCapFrame = new javax.swing.JInternalFrame();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        updateLeagueSalaryIDTextField = new javax.swing.JTextField();
        updateLeagueSalaryCapTextField = new javax.swing.JTextField();
        updateLeagueSalaryCapButton = new javax.swing.JButton();
        filterPlayersFrame = new javax.swing.JInternalFrame();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        filterPlayerHockeySenseTextField = new javax.swing.JTextField();
        filterPlayerDefenseTextField = new javax.swing.JTextField();
        filterPlayerPuckHandlingTextField = new javax.swing.JTextField();
        filterPlayerShotScoringTextField = new javax.swing.JTextField();
        filterPlayerPoiseTextField = new javax.swing.JTextField();
        filterPlayerSizeStrengthTextField = new javax.swing.JTextField();
        filterPlayerPotentialTextField = new javax.swing.JTextField();
        filterPlayerLeadershipTextField = new javax.swing.JTextField();
        filterPlayerSkatingTextField = new javax.swing.JTextField();
        getFilteredPlayerReportButton = new javax.swing.JButton();
        playerReportFrame = new javax.swing.JInternalFrame();
        jScrollPane4 = new javax.swing.JScrollPane();
        playerReportTextArea = new javax.swing.JTextArea();
        viewTeamScoutingAbilitiesFrame1 = new javax.swing.JInternalFrame();
        jLabel37 = new javax.swing.JLabel();
        viewTeamScoutingAbilitiesTeamIDTextField = new javax.swing.JTextField();
        viewTeamScoutingAbilitiesButton = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        viewTeamScoutingAbilitiesTextArea = new javax.swing.JTextArea();
        NHLTeamAffiliationsFrame = new javax.swing.JInternalFrame();
        jScrollPane6 = new javax.swing.JScrollPane();
        NHLTeamAffiliationsTextArea = new javax.swing.JTextArea();
        viewTeamRosterFrame = new javax.swing.JInternalFrame();
        jLabel38 = new javax.swing.JLabel();
        viewTeamRosterIDTextField = new javax.swing.JTextField();
        getRosterButton = new javax.swing.JButton();
        jScrollPane7 = new javax.swing.JScrollPane();
        viewTeamRosterTextArea = new javax.swing.JTextArea();
        viewTeamProspectsFrame = new javax.swing.JInternalFrame();
        jLabel39 = new javax.swing.JLabel();
        getProspectsButton = new javax.swing.JButton();
        viewTeamProspectsIDTextField = new javax.swing.JTextField();
        jScrollPane8 = new javax.swing.JScrollPane();
        viewTeamProspectsTextArea = new javax.swing.JTextArea();
        freeAgentsFrame = new javax.swing.JInternalFrame();
        jScrollPane9 = new javax.swing.JScrollPane();
        freeAgentsTextArea = new javax.swing.JTextArea();
        playerSearchFrame = new javax.swing.JInternalFrame();
        jLabel40 = new javax.swing.JLabel();
        playerSearchTextField = new javax.swing.JTextField();
        playerSearchButton = new javax.swing.JButton();
        jScrollPane10 = new javax.swing.JScrollPane();
        playerSearchTextArea = new javax.swing.JTextArea();
        gameSearchFrame = new javax.swing.JInternalFrame();
        gameSearchButton = new javax.swing.JButton();
        jLabel41 = new javax.swing.JLabel();
        gameSearchTextField = new javax.swing.JTextField();
        jScrollPane11 = new javax.swing.JScrollPane();
        gameSearchTextArea = new javax.swing.JTextArea();
        leagueTeamsFrame = new javax.swing.JInternalFrame();
        jLabel42 = new javax.swing.JLabel();
        leagueTeamsTextField = new javax.swing.JTextField();
        leagueTeamsButton = new javax.swing.JButton();
        jScrollPane12 = new javax.swing.JScrollPane();
        leagueTeamsTextArea = new javax.swing.JTextArea();
        showLeagueFrame = new javax.swing.JInternalFrame();
        jScrollPane13 = new javax.swing.JScrollPane();
        showLeaguesTextArea = new javax.swing.JTextArea();
        showScoutsFrame = new javax.swing.JInternalFrame();
        jScrollPane14 = new javax.swing.JScrollPane();
        showScoutsTextArea = new javax.swing.JTextArea();
        showAllPlayersFrame = new javax.swing.JInternalFrame();
        jScrollPane15 = new javax.swing.JScrollPane();
        showAllPlayersTextArea = new javax.swing.JTextArea();
        showAllGamesFrame = new javax.swing.JInternalFrame();
        jScrollPane16 = new javax.swing.JScrollPane();
        showAllGamesTextArea = new javax.swing.JTextArea();
        gameFrame = new javax.swing.JInternalFrame();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        gameReportMonthTextField = new javax.swing.JTextField();
        gameReportAwayTextField = new javax.swing.JTextField();
        gameReportHomeTextField = new javax.swing.JTextField();
        gameReportDayTextField = new javax.swing.JTextField();
        gameReportYearTextField = new javax.swing.JTextField();
        jScrollPane3 = new javax.swing.JScrollPane();
        gameReportTextArea = new javax.swing.JTextArea();
        gameReportButton = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        leagueMenu = new javax.swing.JMenu();
        addLeagueMenutItem = new javax.swing.JMenuItem();
        updateLeagueSalaryCapMenuItem = new javax.swing.JMenuItem();
        showLeaguesMenuItem = new javax.swing.JMenuItem();
        showLeagueTeamsMenuItem = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        scoutMenu = new javax.swing.JMenu();
        addScoutingReportMenuItem = new javax.swing.JMenuItem();
        viewScoutingReportMenuItem = new javax.swing.JMenuItem();
        showScoutsMenuItem = new javax.swing.JMenuItem();
        playerMenu = new javax.swing.JMenu();
        showPlayerMenuItem = new javax.swing.JMenuItem();
        freeAgentsMenuItem = new javax.swing.JMenuItem();
        filterPlayersMenuItem = new javax.swing.JMenuItem();
        playerSearchMenuItem = new javax.swing.JMenuItem();
        retirePlayerMenuItem = new javax.swing.JMenuItem();
        gameMenu = new javax.swing.JMenu();
        gameReportMenuItem = new javax.swing.JMenuItem();
        gameSearchMenuItem = new javax.swing.JMenuItem();
        showAllGamesMenuItem = new javax.swing.JMenuItem();
        teamMenu = new javax.swing.JMenu();
        hireStaffMenuItem = new javax.swing.JMenuItem();
        viewTeamStaffMenuItem = new javax.swing.JMenuItem();
        viewTeamScoutingAbilitiesFrame = new javax.swing.JMenuItem();
        viewTeamRosterMenuItem = new javax.swing.JMenuItem();
        viewTeamProspectsMenuItem = new javax.swing.JMenuItem();

        jMenu1.setText("File");
        jMenuBar2.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar2.add(jMenu2);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("World Hockey");

        mainDesktopFrame.setForeground(new java.awt.Color(255, 255, 255));

        addLeagueFrame.setClosable(true);
        addLeagueFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        addLeagueFrame.setTitle("Add League");

        jLabel1.setText("League ID:");

        jLabel2.setText("League Name:");

        jLabel3.setText("Salary Cap:");

        jLabel4.setText("Roster Size:");

        addNewLeagueButton.setText("Add New League");
        addNewLeagueButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                addNewLeagueButtonMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout addLeagueFrameLayout = new javax.swing.GroupLayout(addLeagueFrame.getContentPane());
        addLeagueFrame.getContentPane().setLayout(addLeagueFrameLayout);
        addLeagueFrameLayout.setHorizontalGroup(
            addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addLeagueFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(addNewLeagueButton, javax.swing.GroupLayout.DEFAULT_SIZE, 336, Short.MAX_VALUE)
                    .addGroup(addLeagueFrameLayout.createSequentialGroup()
                        .addGroup(addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel2)
                            .addComponent(jLabel1)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(newLeagueRosterSizeTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(newLeagueSalaryCapTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(newLeagueIDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(newLeagueNameTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE))))
                .addContainerGap())
        );
        addLeagueFrameLayout.setVerticalGroup(
            addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addLeagueFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(newLeagueIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(newLeagueNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(newLeagueSalaryCapTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(addLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(newLeagueRosterSizeTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4))
                .addGap(18, 18, 18)
                .addComponent(addNewLeagueButton)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        addLeagueFrame.setBounds(200, 90, 370, 230);
        mainDesktopFrame.add(addLeagueFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        addScoutingReportFrame.setClosable(true);
        addScoutingReportFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        addScoutingReportFrame.setTitle("New Skater Scouting Report");

        jLabel5.setText("Scout ID:");

        jLabel6.setText("Hockey Sense:");

        jLabel7.setText("Puckhandling:");

        jLabel8.setText("Defense:");

        jLabel9.setText("Shot / Scoring:");

        jLabel11.setText("Player ID:");

        jLabel12.setText("Poise:");

        jLabel13.setText("Size / Strength:");

        jLabel14.setText("Leadership:");

        jLabel15.setText("Skating:");

        newScoutingReportHockeySenseTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newScoutingReportHockeySenseTextFieldActionPerformed(evt);
            }
        });

        newScoutingReportShotTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newScoutingReportShotTextFieldActionPerformed(evt);
            }
        });

        newScoutingReportSizeTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newScoutingReportSizeTextFieldActionPerformed(evt);
            }
        });

        addScoutingReportButton.setText("Add Scouting Report");
        addScoutingReportButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                addScoutingReportButtonMouseClicked(evt);
            }
        });

        jLabel17.setText("Potential:");

        javax.swing.GroupLayout addScoutingReportFrameLayout = new javax.swing.GroupLayout(addScoutingReportFrame.getContentPane());
        addScoutingReportFrame.getContentPane().setLayout(addScoutingReportFrameLayout);
        addScoutingReportFrameLayout.setHorizontalGroup(
            addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(addScoutingReportButton, javax.swing.GroupLayout.DEFAULT_SIZE, 612, Short.MAX_VALUE)
                    .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel9)
                            .addComponent(jLabel8)
                            .addComponent(jLabel7)
                            .addComponent(jLabel6)
                            .addComponent(jLabel5)
                            .addComponent(jLabel17))
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(newScoutingReportPuckhandlingTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                                    .addComponent(newScoutingReportDefenseTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                                    .addComponent(newScoutingReportShotTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                                    .addComponent(newScoutingReportPotentialTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)))
                            .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(newScoutingReportScoutIDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE))
                            .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(newScoutingReportHockeySenseTextField)))
                        .addGap(26, 26, 26)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14)
                            .addComponent(jLabel15)
                            .addComponent(jLabel13)
                            .addComponent(jLabel11)
                            .addComponent(jLabel12))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(newScoutingReportPoiseTextField)
                            .addComponent(newScoutingReportSizeTextField)
                            .addComponent(newScoutingReportLeadershipTextField)
                            .addComponent(newScoutingReportSkatingTextField)
                            .addComponent(newScoutingReportPlayerIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        addScoutingReportFrameLayout.setVerticalGroup(
            addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(newScoutingReportScoutIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(newScoutingReportHockeySenseTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(newScoutingReportPuckhandlingTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(newScoutingReportDefenseTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(newScoutingReportShotTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(addScoutingReportFrameLayout.createSequentialGroup()
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11)
                            .addComponent(newScoutingReportPlayerIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12)
                            .addComponent(newScoutingReportPoiseTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel13)
                            .addComponent(newScoutingReportSizeTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel14)
                            .addComponent(newScoutingReportLeadershipTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel15)
                            .addComponent(newScoutingReportSkatingTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(18, 18, 18)
                .addGroup(addScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(newScoutingReportPotentialTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17))
                .addGap(18, 18, 18)
                .addComponent(addScoutingReportButton)
                .addContainerGap(17, Short.MAX_VALUE))
        );

        addScoutingReportFrame.setBounds(10, 20, 620, 300);
        mainDesktopFrame.add(addScoutingReportFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        viewScoutingReportFrame.setClosable(true);
        viewScoutingReportFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        viewScoutingReportFrame.setTitle("View Scouting Report");

        jLabel16.setText("Player ID:");

        viewScoutingReportsTextArea.setColumns(20);
        viewScoutingReportsTextArea.setRows(5);
        jScrollPane1.setViewportView(viewScoutingReportsTextArea);

        getScoutingReportsButton.setText("Get Scouting Reports");
        getScoutingReportsButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                getScoutingReportsButtonMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout viewScoutingReportFrameLayout = new javax.swing.GroupLayout(viewScoutingReportFrame.getContentPane());
        viewScoutingReportFrame.getContentPane().setLayout(viewScoutingReportFrameLayout);
        viewScoutingReportFrameLayout.setHorizontalGroup(
            viewScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewScoutingReportFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(getScoutingReportsButton, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                    .addGroup(viewScoutingReportFrameLayout.createSequentialGroup()
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(viewScoutingReportsPlayerIDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)))
                .addContainerGap())
        );
        viewScoutingReportFrameLayout.setVerticalGroup(
            viewScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewScoutingReportFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewScoutingReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(viewScoutingReportsPlayerIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(getScoutingReportsButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 313, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        viewScoutingReportFrame.setBounds(10, 20, 430, 460);
        mainDesktopFrame.add(viewScoutingReportFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        retirePlayerFrame.setClosable(true);
        retirePlayerFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        retirePlayerFrame.setTitle("Player Retirement");

        jLabel10.setText("Player ID:");

        retirePlayerButton.setText("Retire");
        retirePlayerButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                retirePlayerButtonMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout retirePlayerFrameLayout = new javax.swing.GroupLayout(retirePlayerFrame.getContentPane());
        retirePlayerFrame.getContentPane().setLayout(retirePlayerFrameLayout);
        retirePlayerFrameLayout.setHorizontalGroup(
            retirePlayerFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(retirePlayerFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(retirePlayerFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(retirePlayerButton, javax.swing.GroupLayout.DEFAULT_SIZE, 236, Short.MAX_VALUE)
                    .addGroup(retirePlayerFrameLayout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(playerRetirementPlayerIDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)))
                .addContainerGap())
        );
        retirePlayerFrameLayout.setVerticalGroup(
            retirePlayerFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(retirePlayerFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(retirePlayerFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(playerRetirementPlayerIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(retirePlayerButton)
                .addContainerGap(17, Short.MAX_VALUE))
        );

        retirePlayerFrame.setBounds(40, 30, 270, 120);
        mainDesktopFrame.add(retirePlayerFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        hireStaffFrame.setClosable(true);
        hireStaffFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        hireStaffFrame.setTitle("Hire Staff");

        jLabel18.setText("Team ID:");

        jLabel19.setText("Staff ID:");

        jLabel20.setText("Contract End Date:");

        hireStaffMonthTextField.setText("MM");

        hireStaffDayTextField.setText("DD");

        hireStaffYearTextField.setText("YYYY");

        jLabel21.setText("Salary:");

        hireStaffButton.setText("Hire Staff");
        hireStaffButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                hireStaffButtonMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout hireStaffFrameLayout = new javax.swing.GroupLayout(hireStaffFrame.getContentPane());
        hireStaffFrame.getContentPane().setLayout(hireStaffFrameLayout);
        hireStaffFrameLayout.setHorizontalGroup(
            hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(hireStaffFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(hireStaffButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, hireStaffFrameLayout.createSequentialGroup()
                        .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel18)
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, hireStaffFrameLayout.createSequentialGroup()
                                    .addComponent(jLabel19)
                                    .addGap(87, 87, 87)))
                            .addComponent(jLabel20)
                            .addComponent(jLabel21))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(hireStaffFrameLayout.createSequentialGroup()
                                .addComponent(hireStaffMonthTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(hireStaffDayTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(hireStaffYearTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(hireStaffTeamIDTextField)
                            .addComponent(hireStaffStaffIDTextField)
                            .addComponent(hireStaffSalaryTextField))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        hireStaffFrameLayout.setVerticalGroup(
            hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(hireStaffFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(hireStaffTeamIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(hireStaffStaffIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(hireStaffMonthTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(hireStaffYearTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(hireStaffDayTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(hireStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(hireStaffSalaryTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(hireStaffButton)
                .addContainerGap(21, Short.MAX_VALUE))
        );

        hireStaffFrame.setBounds(40, 70, 290, 190);
        mainDesktopFrame.add(hireStaffFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        viewTeamStaffFrame.setClosable(true);
        viewTeamStaffFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        viewTeamStaffFrame.setTitle("View Team Staff");

        jLabel22.setText("Team ID:");

        viewTeamStaffButton.setText("View Staff");
        viewTeamStaffButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                viewTeamStaffButtonMouseClicked(evt);
            }
        });

        viewTeamStaffTextArea.setColumns(20);
        viewTeamStaffTextArea.setRows(5);
        jScrollPane2.setViewportView(viewTeamStaffTextArea);

        javax.swing.GroupLayout viewTeamStaffFrameLayout = new javax.swing.GroupLayout(viewTeamStaffFrame.getContentPane());
        viewTeamStaffFrame.getContentPane().setLayout(viewTeamStaffFrameLayout);
        viewTeamStaffFrameLayout.setHorizontalGroup(
            viewTeamStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewTeamStaffFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 456, Short.MAX_VALUE)
                    .addComponent(viewTeamStaffButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 456, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, viewTeamStaffFrameLayout.createSequentialGroup()
                        .addComponent(jLabel22)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(viewTeamStaffTeamIDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE)))
                .addContainerGap())
        );
        viewTeamStaffFrameLayout.setVerticalGroup(
            viewTeamStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewTeamStaffFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamStaffFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(viewTeamStaffTeamIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(viewTeamStaffButton)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 313, Short.MAX_VALUE)
                .addContainerGap())
        );

        viewTeamStaffFrame.setBounds(100, 30, 490, 440);
        mainDesktopFrame.add(viewTeamStaffFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        updateLeagueSalaryCapFrame.setClosable(true);
        updateLeagueSalaryCapFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        updateLeagueSalaryCapFrame.setTitle("Update League Salary Cap");

        jLabel23.setText("League ID:");

        jLabel24.setText("Salary Cap:");

        updateLeagueSalaryCapButton.setText("Update League Salary Cap");
        updateLeagueSalaryCapButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                updateLeagueSalaryCapButtonMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout updateLeagueSalaryCapFrameLayout = new javax.swing.GroupLayout(updateLeagueSalaryCapFrame.getContentPane());
        updateLeagueSalaryCapFrame.getContentPane().setLayout(updateLeagueSalaryCapFrameLayout);
        updateLeagueSalaryCapFrameLayout.setHorizontalGroup(
            updateLeagueSalaryCapFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(updateLeagueSalaryCapFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(updateLeagueSalaryCapFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(updateLeagueSalaryCapButton, javax.swing.GroupLayout.DEFAULT_SIZE, 276, Short.MAX_VALUE)
                    .addGroup(updateLeagueSalaryCapFrameLayout.createSequentialGroup()
                        .addGroup(updateLeagueSalaryCapFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel24)
                            .addComponent(jLabel23))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(updateLeagueSalaryCapFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(updateLeagueSalaryIDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)
                            .addComponent(updateLeagueSalaryCapTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE))))
                .addContainerGap())
        );
        updateLeagueSalaryCapFrameLayout.setVerticalGroup(
            updateLeagueSalaryCapFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(updateLeagueSalaryCapFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(updateLeagueSalaryCapFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(updateLeagueSalaryIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(updateLeagueSalaryCapFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(updateLeagueSalaryCapTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(updateLeagueSalaryCapButton)
                .addContainerGap(21, Short.MAX_VALUE))
        );

        updateLeagueSalaryCapFrame.setBounds(60, 30, 310, 160);
        mainDesktopFrame.add(updateLeagueSalaryCapFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        filterPlayersFrame.setClosable(true);
        filterPlayersFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        filterPlayersFrame.setTitle("Filter Players");

        jLabel28.setText("Hockey Sense:");

        jLabel29.setText("Puck Handling:");

        jLabel30.setText("Potential:");

        jLabel31.setText("Defense:");

        jLabel32.setText("Shot / Scoring:");

        jLabel33.setText("Poise:");

        jLabel34.setText("Size / Strength:");

        jLabel35.setText("Leadership:");

        jLabel36.setText("Skating:");

        filterPlayerHockeySenseTextField.setText("0");

        filterPlayerDefenseTextField.setText("0");

        filterPlayerPuckHandlingTextField.setText("0");

        filterPlayerShotScoringTextField.setText("0");

        filterPlayerPoiseTextField.setText("0");

        filterPlayerSizeStrengthTextField.setText("0");

        filterPlayerPotentialTextField.setText("0");

        filterPlayerLeadershipTextField.setText("0");

        filterPlayerSkatingTextField.setText("0");

        getFilteredPlayerReportButton.setText("Get Filtered Player Report");
        getFilteredPlayerReportButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                getFilteredPlayerReportButtonMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout filterPlayersFrameLayout = new javax.swing.GroupLayout(filterPlayersFrame.getContentPane());
        filterPlayersFrame.getContentPane().setLayout(filterPlayersFrameLayout);
        filterPlayersFrameLayout.setHorizontalGroup(
            filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(filterPlayersFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(filterPlayersFrameLayout.createSequentialGroup()
                        .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel28)
                            .addComponent(jLabel29))
                        .addGap(18, 18, 18)
                        .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(filterPlayerPuckHandlingTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)
                            .addComponent(filterPlayerHockeySenseTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE)))
                    .addGroup(filterPlayersFrameLayout.createSequentialGroup()
                        .addComponent(jLabel31)
                        .addGap(45, 45, 45)
                        .addComponent(filterPlayerDefenseTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE))
                    .addGroup(filterPlayersFrameLayout.createSequentialGroup()
                        .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel32)
                            .addComponent(jLabel33)
                            .addComponent(jLabel34)
                            .addComponent(jLabel35)
                            .addComponent(jLabel36)
                            .addComponent(jLabel30))
                        .addGap(18, 18, 18)
                        .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(filterPlayerPotentialTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
                            .addComponent(filterPlayerSkatingTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
                            .addComponent(filterPlayerLeadershipTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
                            .addComponent(filterPlayerSizeStrengthTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
                            .addComponent(filterPlayerPoiseTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)
                            .addComponent(filterPlayerShotScoringTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 91, Short.MAX_VALUE)))
                    .addComponent(getFilteredPlayerReportButton))
                .addGap(467, 467, 467))
        );
        filterPlayersFrameLayout.setVerticalGroup(
            filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(filterPlayersFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(filterPlayerHockeySenseTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel29)
                    .addComponent(filterPlayerPuckHandlingTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(filterPlayerDefenseTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel32)
                    .addComponent(filterPlayerShotScoringTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel33)
                    .addComponent(filterPlayerPoiseTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel34)
                    .addComponent(filterPlayerSizeStrengthTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel35)
                    .addComponent(filterPlayerLeadershipTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(filterPlayerSkatingTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(filterPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel30)
                    .addComponent(filterPlayerPotentialTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(getFilteredPlayerReportButton)
                .addContainerGap(19, Short.MAX_VALUE))
        );

        filterPlayersFrame.setBounds(60, 40, 200, 410);
        mainDesktopFrame.add(filterPlayersFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        playerReportFrame.setClosable(true);
        playerReportFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        playerReportFrame.setResizable(true);
        playerReportFrame.setTitle("Player Report");

        playerReportTextArea.setColumns(20);
        playerReportTextArea.setRows(5);
        jScrollPane4.setViewportView(playerReportTextArea);

        javax.swing.GroupLayout playerReportFrameLayout = new javax.swing.GroupLayout(playerReportFrame.getContentPane());
        playerReportFrame.getContentPane().setLayout(playerReportFrameLayout);
        playerReportFrameLayout.setHorizontalGroup(
            playerReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, playerReportFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
                .addContainerGap())
        );
        playerReportFrameLayout.setVerticalGroup(
            playerReportFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, playerReportFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 355, Short.MAX_VALUE)
                .addContainerGap())
        );

        playerReportFrame.setBounds(290, 40, 510, 410);
        mainDesktopFrame.add(playerReportFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        viewTeamScoutingAbilitiesFrame1.setClosable(true);
        viewTeamScoutingAbilitiesFrame1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        viewTeamScoutingAbilitiesFrame1.setTitle("View Team Scouting Abilities");

        jLabel37.setText("Team ID:");

        viewTeamScoutingAbilitiesButton.setText("View Staff");
        viewTeamScoutingAbilitiesButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                viewTeamScoutingAbilitiesButtonMouseClicked(evt);
            }
        });

        viewTeamScoutingAbilitiesTextArea.setColumns(20);
        viewTeamScoutingAbilitiesTextArea.setRows(5);
        jScrollPane5.setViewportView(viewTeamScoutingAbilitiesTextArea);

        javax.swing.GroupLayout viewTeamScoutingAbilitiesFrame1Layout = new javax.swing.GroupLayout(viewTeamScoutingAbilitiesFrame1.getContentPane());
        viewTeamScoutingAbilitiesFrame1.getContentPane().setLayout(viewTeamScoutingAbilitiesFrame1Layout);
        viewTeamScoutingAbilitiesFrame1Layout.setHorizontalGroup(
            viewTeamScoutingAbilitiesFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewTeamScoutingAbilitiesFrame1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamScoutingAbilitiesFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 504, Short.MAX_VALUE)
                    .addComponent(viewTeamScoutingAbilitiesButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 504, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, viewTeamScoutingAbilitiesFrame1Layout.createSequentialGroup()
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(viewTeamScoutingAbilitiesTeamIDTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)))
                .addContainerGap())
        );
        viewTeamScoutingAbilitiesFrame1Layout.setVerticalGroup(
            viewTeamScoutingAbilitiesFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewTeamScoutingAbilitiesFrame1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamScoutingAbilitiesFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(viewTeamScoutingAbilitiesTeamIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(viewTeamScoutingAbilitiesButton)
                .addGap(18, 18, 18)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE)
                .addContainerGap())
        );

        viewTeamScoutingAbilitiesFrame1.setBounds(60, 60, 538, 448);
        mainDesktopFrame.add(viewTeamScoutingAbilitiesFrame1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        NHLTeamAffiliationsFrame.setClosable(true);
        NHLTeamAffiliationsFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        NHLTeamAffiliationsFrame.setTitle("NHL Team Affiliations");

        NHLTeamAffiliationsTextArea.setColumns(20);
        NHLTeamAffiliationsTextArea.setRows(5);
        jScrollPane6.setViewportView(NHLTeamAffiliationsTextArea);

        javax.swing.GroupLayout NHLTeamAffiliationsFrameLayout = new javax.swing.GroupLayout(NHLTeamAffiliationsFrame.getContentPane());
        NHLTeamAffiliationsFrame.getContentPane().setLayout(NHLTeamAffiliationsFrameLayout);
        NHLTeamAffiliationsFrameLayout.setHorizontalGroup(
            NHLTeamAffiliationsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(NHLTeamAffiliationsFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 446, Short.MAX_VALUE)
                .addContainerGap())
        );
        NHLTeamAffiliationsFrameLayout.setVerticalGroup(
            NHLTeamAffiliationsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(NHLTeamAffiliationsFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)
                .addContainerGap())
        );

        NHLTeamAffiliationsFrame.setBounds(70, 20, 480, 390);
        mainDesktopFrame.add(NHLTeamAffiliationsFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        viewTeamRosterFrame.setClosable(true);
        viewTeamRosterFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        viewTeamRosterFrame.setResizable(true);
        viewTeamRosterFrame.setTitle("Team Roster");

        jLabel38.setText("Team ID:");

        getRosterButton.setText("Get Roster");
        getRosterButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                getRosterButtonMouseClicked(evt);
            }
        });

        viewTeamRosterTextArea.setColumns(20);
        viewTeamRosterTextArea.setRows(5);
        jScrollPane7.setViewportView(viewTeamRosterTextArea);

        javax.swing.GroupLayout viewTeamRosterFrameLayout = new javax.swing.GroupLayout(viewTeamRosterFrame.getContentPane());
        viewTeamRosterFrame.getContentPane().setLayout(viewTeamRosterFrameLayout);
        viewTeamRosterFrameLayout.setHorizontalGroup(
            viewTeamRosterFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewTeamRosterFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamRosterFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 346, Short.MAX_VALUE)
                    .addGroup(viewTeamRosterFrameLayout.createSequentialGroup()
                        .addComponent(jLabel38)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(viewTeamRosterIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(getRosterButton, javax.swing.GroupLayout.DEFAULT_SIZE, 116, Short.MAX_VALUE)))
                .addContainerGap())
        );
        viewTeamRosterFrameLayout.setVerticalGroup(
            viewTeamRosterFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewTeamRosterFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamRosterFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel38)
                    .addComponent(viewTeamRosterIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(getRosterButton))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE)
                .addContainerGap())
        );

        viewTeamRosterFrame.setBounds(110, 50, 380, 340);
        mainDesktopFrame.add(viewTeamRosterFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        viewTeamProspectsFrame.setClosable(true);
        viewTeamProspectsFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        viewTeamProspectsFrame.setTitle("Team Prospects");

        jLabel39.setText("Team ID:");

        getProspectsButton.setText("Get Prospects");
        getProspectsButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                getProspectsButtonMouseClicked(evt);
            }
        });

        viewTeamProspectsTextArea.setColumns(20);
        viewTeamProspectsTextArea.setRows(5);
        jScrollPane8.setViewportView(viewTeamProspectsTextArea);

        javax.swing.GroupLayout viewTeamProspectsFrameLayout = new javax.swing.GroupLayout(viewTeamProspectsFrame.getContentPane());
        viewTeamProspectsFrame.getContentPane().setLayout(viewTeamProspectsFrameLayout);
        viewTeamProspectsFrameLayout.setHorizontalGroup(
            viewTeamProspectsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewTeamProspectsFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamProspectsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE)
                    .addGroup(viewTeamProspectsFrameLayout.createSequentialGroup()
                        .addComponent(jLabel39)
                        .addGap(18, 18, 18)
                        .addComponent(viewTeamProspectsIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(getProspectsButton, javax.swing.GroupLayout.PREFERRED_SIZE, 126, Short.MAX_VALUE)))
                .addContainerGap())
        );
        viewTeamProspectsFrameLayout.setVerticalGroup(
            viewTeamProspectsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(viewTeamProspectsFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(viewTeamProspectsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel39)
                    .addComponent(viewTeamProspectsIDTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(getProspectsButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE)
                .addContainerGap())
        );

        viewTeamProspectsFrame.setBounds(60, 50, 400, 330);
        mainDesktopFrame.add(viewTeamProspectsFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        freeAgentsFrame.setClosable(true);
        freeAgentsFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        freeAgentsFrame.setTitle("Free Agents");

        freeAgentsTextArea.setColumns(20);
        freeAgentsTextArea.setRows(5);
        jScrollPane9.setViewportView(freeAgentsTextArea);

        javax.swing.GroupLayout freeAgentsFrameLayout = new javax.swing.GroupLayout(freeAgentsFrame.getContentPane());
        freeAgentsFrame.getContentPane().setLayout(freeAgentsFrameLayout);
        freeAgentsFrameLayout.setHorizontalGroup(
            freeAgentsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 450, Short.MAX_VALUE)
        );
        freeAgentsFrameLayout.setVerticalGroup(
            freeAgentsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 429, Short.MAX_VALUE)
        );

        freeAgentsFrame.setBounds(30, 30, 460, 460);
        mainDesktopFrame.add(freeAgentsFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        playerSearchFrame.setClosable(true);
        playerSearchFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        playerSearchFrame.setTitle("Player Search");

        jLabel40.setText("Name: ");

        playerSearchButton.setText("Search");
        playerSearchButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                playerSearchButtonMouseClicked(evt);
            }
        });

        playerSearchTextArea.setColumns(20);
        playerSearchTextArea.setRows(5);
        jScrollPane10.setViewportView(playerSearchTextArea);

        javax.swing.GroupLayout playerSearchFrameLayout = new javax.swing.GroupLayout(playerSearchFrame.getContentPane());
        playerSearchFrame.getContentPane().setLayout(playerSearchFrameLayout);
        playerSearchFrameLayout.setHorizontalGroup(
            playerSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(playerSearchFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(playerSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 346, Short.MAX_VALUE)
                    .addGroup(playerSearchFrameLayout.createSequentialGroup()
                        .addComponent(jLabel40)
                        .addGap(18, 18, 18)
                        .addComponent(playerSearchTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addComponent(playerSearchButton)))
                .addContainerGap())
        );
        playerSearchFrameLayout.setVerticalGroup(
            playerSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(playerSearchFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(playerSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel40)
                    .addComponent(playerSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(playerSearchButton))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                .addContainerGap())
        );

        playerSearchFrame.setBounds(110, 80, 380, 330);
        mainDesktopFrame.add(playerSearchFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        gameSearchFrame.setClosable(true);
        gameSearchFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        gameSearchFrame.setTitle("Game Search");

        gameSearchButton.setText("Search");
        gameSearchButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                gameSearchButtonMouseClicked(evt);
            }
        });

        jLabel41.setText("Team:");

        gameSearchTextArea.setColumns(20);
        gameSearchTextArea.setRows(5);
        jScrollPane11.setViewportView(gameSearchTextArea);

        javax.swing.GroupLayout gameSearchFrameLayout = new javax.swing.GroupLayout(gameSearchFrame.getContentPane());
        gameSearchFrame.getContentPane().setLayout(gameSearchFrameLayout);
        gameSearchFrameLayout.setHorizontalGroup(
            gameSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, gameSearchFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(gameSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 310, Short.MAX_VALUE)
                    .addGroup(gameSearchFrameLayout.createSequentialGroup()
                        .addComponent(jLabel41)
                        .addGap(18, 18, 18)
                        .addComponent(gameSearchTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 154, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(gameSearchButton)))
                .addGap(48, 48, 48))
        );
        gameSearchFrameLayout.setVerticalGroup(
            gameSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(gameSearchFrameLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(gameSearchFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel41)
                    .addComponent(gameSearchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(gameSearchButton))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 311, Short.MAX_VALUE)
                .addContainerGap())
        );

        gameSearchFrame.setBounds(100, 50, 380, 410);
        mainDesktopFrame.add(gameSearchFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        leagueTeamsFrame.setClosable(true);
        leagueTeamsFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        leagueTeamsFrame.setTitle("League Teams");

        jLabel42.setText("League ID:");

        leagueTeamsButton.setText("Search");
        leagueTeamsButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                leagueTeamsButtonMouseClicked(evt);
            }
        });

        leagueTeamsTextArea.setColumns(20);
        leagueTeamsTextArea.setRows(5);
        jScrollPane12.setViewportView(leagueTeamsTextArea);

        javax.swing.GroupLayout leagueTeamsFrameLayout = new javax.swing.GroupLayout(leagueTeamsFrame.getContentPane());
        leagueTeamsFrame.getContentPane().setLayout(leagueTeamsFrameLayout);
        leagueTeamsFrameLayout.setHorizontalGroup(
            leagueTeamsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(leagueTeamsFrameLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(leagueTeamsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 355, Short.MAX_VALUE)
                    .addGroup(leagueTeamsFrameLayout.createSequentialGroup()
                        .addComponent(jLabel42)
                        .addGap(18, 18, 18)
                        .addComponent(leagueTeamsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(leagueTeamsButton, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)))
                .addContainerGap())
        );
        leagueTeamsFrameLayout.setVerticalGroup(
            leagueTeamsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(leagueTeamsFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(leagueTeamsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel42)
                    .addComponent(leagueTeamsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(leagueTeamsButton))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)
                .addContainerGap())
        );

        leagueTeamsFrame.setBounds(80, 40, 400, 330);
        mainDesktopFrame.add(leagueTeamsFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        showLeagueFrame.setClosable(true);
        showLeagueFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        showLeagueFrame.setTitle("League");

        showLeaguesTextArea.setColumns(20);
        showLeaguesTextArea.setRows(5);
        jScrollPane13.setViewportView(showLeaguesTextArea);

        javax.swing.GroupLayout showLeagueFrameLayout = new javax.swing.GroupLayout(showLeagueFrame.getContentPane());
        showLeagueFrame.getContentPane().setLayout(showLeagueFrameLayout);
        showLeagueFrameLayout.setHorizontalGroup(
            showLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showLeagueFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 456, Short.MAX_VALUE)
                .addContainerGap())
        );
        showLeagueFrameLayout.setVerticalGroup(
            showLeagueFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showLeagueFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 345, Short.MAX_VALUE)
                .addContainerGap())
        );

        showLeagueFrame.setBounds(60, 60, 490, 400);
        mainDesktopFrame.add(showLeagueFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        showScoutsFrame.setClosable(true);
        showScoutsFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        showScoutsFrame.setTitle("Scouts");

        showScoutsTextArea.setColumns(20);
        showScoutsTextArea.setRows(5);
        jScrollPane14.setViewportView(showScoutsTextArea);

        javax.swing.GroupLayout showScoutsFrameLayout = new javax.swing.GroupLayout(showScoutsFrame.getContentPane());
        showScoutsFrame.getContentPane().setLayout(showScoutsFrameLayout);
        showScoutsFrameLayout.setHorizontalGroup(
            showScoutsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showScoutsFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                .addContainerGap())
        );
        showScoutsFrameLayout.setVerticalGroup(
            showScoutsFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showScoutsFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 275, Short.MAX_VALUE)
                .addContainerGap())
        );

        showScoutsFrame.setBounds(70, 60, 430, 330);
        mainDesktopFrame.add(showScoutsFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        showAllPlayersFrame.setClosable(true);
        showAllPlayersFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        showAllPlayersFrame.setTitle("All Players");

        showAllPlayersTextArea.setColumns(20);
        showAllPlayersTextArea.setRows(5);
        jScrollPane15.setViewportView(showAllPlayersTextArea);

        javax.swing.GroupLayout showAllPlayersFrameLayout = new javax.swing.GroupLayout(showAllPlayersFrame.getContentPane());
        showAllPlayersFrame.getContentPane().setLayout(showAllPlayersFrameLayout);
        showAllPlayersFrameLayout.setHorizontalGroup(
            showAllPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showAllPlayersFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 446, Short.MAX_VALUE)
                .addContainerGap())
        );
        showAllPlayersFrameLayout.setVerticalGroup(
            showAllPlayersFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showAllPlayersFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE)
                .addContainerGap())
        );

        showAllPlayersFrame.setBounds(40, 40, 480, 430);
        mainDesktopFrame.add(showAllPlayersFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        showAllGamesFrame.setClosable(true);
        showAllGamesFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        showAllGamesFrame.setTitle("All Games");

        showAllGamesTextArea.setColumns(20);
        showAllGamesTextArea.setRows(5);
        jScrollPane16.setViewportView(showAllGamesTextArea);

        javax.swing.GroupLayout showAllGamesFrameLayout = new javax.swing.GroupLayout(showAllGamesFrame.getContentPane());
        showAllGamesFrame.getContentPane().setLayout(showAllGamesFrameLayout);
        showAllGamesFrameLayout.setHorizontalGroup(
            showAllGamesFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showAllGamesFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                .addContainerGap())
        );
        showAllGamesFrameLayout.setVerticalGroup(
            showAllGamesFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(showAllGamesFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 345, Short.MAX_VALUE)
                .addContainerGap())
        );

        showAllGamesFrame.setBounds(90, 70, 430, 400);
        mainDesktopFrame.add(showAllGamesFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        gameFrame.setClosable(true);
        gameFrame.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        gameFrame.setTitle("Game Report");

        jLabel25.setText("Away Team ID:");

        jLabel26.setText("Date of Game:");

        jLabel27.setText("Home Team ID:");

        gameReportMonthTextField.setText("10");

        gameReportAwayTextField.setText("CGY");

        gameReportHomeTextField.setText("EDM");
        gameReportHomeTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gameReportHomeTextFieldActionPerformed(evt);
            }
        });

        gameReportDayTextField.setText("03");
        gameReportDayTextField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gameReportDayTextFieldActionPerformed(evt);
            }
        });

        gameReportYearTextField.setText("2009");

        gameReportTextArea.setColumns(20);
        gameReportTextArea.setRows(5);
        jScrollPane3.setViewportView(gameReportTextArea);

        gameReportButton.setText("View Game Report");
        gameReportButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gameReportButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout gameFrameLayout = new javax.swing.GroupLayout(gameFrame.getContentPane());
        gameFrame.getContentPane().setLayout(gameFrameLayout);
        gameFrameLayout.setHorizontalGroup(
            gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(gameFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, gameFrameLayout.createSequentialGroup()
                        .addGroup(gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel25)
                            .addComponent(jLabel26))
                        .addGap(18, 18, 18)
                        .addGroup(gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(gameFrameLayout.createSequentialGroup()
                                .addComponent(gameReportMonthTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(gameReportDayTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(gameReportAwayTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(gameFrameLayout.createSequentialGroup()
                                .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(gameReportHomeTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(gameFrameLayout.createSequentialGroup()
                                .addComponent(gameReportYearTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(gameReportButton)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        gameFrameLayout.setVerticalGroup(
            gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(gameFrameLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel25)
                    .addComponent(gameReportAwayTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel27)
                    .addComponent(gameReportHomeTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(gameFrameLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel26)
                    .addComponent(gameReportMonthTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(gameReportDayTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(gameReportYearTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(gameReportButton))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE)
                .addContainerGap())
        );

        gameFrame.setBounds(90, 50, 525, 440);
        mainDesktopFrame.add(gameFrame, javax.swing.JLayeredPane.DEFAULT_LAYER);

        leagueMenu.setText("League");
        leagueMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                leagueMenuActionPerformed(evt);
            }
        });

        addLeagueMenutItem.setText("Add League");
        addLeagueMenutItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addLeagueMenutItemActionPerformed(evt);
            }
        });
        leagueMenu.add(addLeagueMenutItem);

        updateLeagueSalaryCapMenuItem.setText("Update League Salary Cap");
        updateLeagueSalaryCapMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                updateLeagueSalaryCapMenuItemActionPerformed(evt);
            }
        });
        leagueMenu.add(updateLeagueSalaryCapMenuItem);

        showLeaguesMenuItem.setText("Show Leagues");
        showLeaguesMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showLeaguesMenuItemActionPerformed(evt);
            }
        });
        leagueMenu.add(showLeaguesMenuItem);

        showLeagueTeamsMenuItem.setText("Show League Teams");
        showLeagueTeamsMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showLeagueTeamsMenuItemActionPerformed(evt);
            }
        });
        leagueMenu.add(showLeagueTeamsMenuItem);

        jMenuItem1.setText("NHL Team Affiliations");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        leagueMenu.add(jMenuItem1);

        jMenuBar1.add(leagueMenu);

        scoutMenu.setText("Scout");
        scoutMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                scoutMenuActionPerformed(evt);
            }
        });

        addScoutingReportMenuItem.setText("Add Skater Scouting Report");
        addScoutingReportMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                addScoutingReportMenuItemActionPerformed(evt);
            }
        });
        scoutMenu.add(addScoutingReportMenuItem);

        viewScoutingReportMenuItem.setText("View Scouting Reports");
        viewScoutingReportMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewScoutingReportMenuItemActionPerformed(evt);
            }
        });
        scoutMenu.add(viewScoutingReportMenuItem);

        showScoutsMenuItem.setText("Show Scouts");
        showScoutsMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showScoutsMenuItemActionPerformed(evt);
            }
        });
        scoutMenu.add(showScoutsMenuItem);

        jMenuBar1.add(scoutMenu);

        playerMenu.setText("Player");
        playerMenu.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                playerMenuActionPerformed(evt);
            }
        });

        showPlayerMenuItem.setText("Show All Players");
        showPlayerMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showPlayerMenuItemActionPerformed(evt);
            }
        });
        playerMenu.add(showPlayerMenuItem);

        freeAgentsMenuItem.setText("Free Agents");
        freeAgentsMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                freeAgentsMenuItemActionPerformed(evt);
            }
        });
        playerMenu.add(freeAgentsMenuItem);

        filterPlayersMenuItem.setText("Filter Players");
        filterPlayersMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                filterPlayersMenuItemActionPerformed(evt);
            }
        });
        playerMenu.add(filterPlayersMenuItem);

        playerSearchMenuItem.setText("Search By Player Name");
        playerSearchMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                playerSearchMenuItemActionPerformed(evt);
            }
        });
        playerMenu.add(playerSearchMenuItem);

        retirePlayerMenuItem.setText("Retire Player");
        retirePlayerMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                retirePlayerMenuItemActionPerformed(evt);
            }
        });
        playerMenu.add(retirePlayerMenuItem);

        jMenuBar1.add(playerMenu);

        gameMenu.setText("Game");

        gameReportMenuItem.setText("Game Report");
        gameReportMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gameReportMenuItemActionPerformed(evt);
            }
        });
        gameMenu.add(gameReportMenuItem);

        gameSearchMenuItem.setText("Search For Games");
        gameSearchMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gameSearchMenuItemActionPerformed(evt);
            }
        });
        gameMenu.add(gameSearchMenuItem);

        showAllGamesMenuItem.setText("Show All Games");
        showAllGamesMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                showAllGamesMenuItemActionPerformed(evt);
            }
        });
        gameMenu.add(showAllGamesMenuItem);

        jMenuBar1.add(gameMenu);

        teamMenu.setText("Team");

        hireStaffMenuItem.setText("Hire Staff");
        hireStaffMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                hireStaffMenuItemActionPerformed(evt);
            }
        });
        teamMenu.add(hireStaffMenuItem);

        viewTeamStaffMenuItem.setText("View Team Staff");
        viewTeamStaffMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewTeamStaffMenuItemActionPerformed(evt);
            }
        });
        teamMenu.add(viewTeamStaffMenuItem);

        viewTeamScoutingAbilitiesFrame.setText("View Team Scouting Abilities");
        viewTeamScoutingAbilitiesFrame.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewTeamScoutingAbilitiesFrameActionPerformed(evt);
            }
        });
        teamMenu.add(viewTeamScoutingAbilitiesFrame);

        viewTeamRosterMenuItem.setText("View Team Roster");
        viewTeamRosterMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewTeamRosterMenuItemActionPerformed(evt);
            }
        });
        teamMenu.add(viewTeamRosterMenuItem);

        viewTeamProspectsMenuItem.setText("View Team Prospects");
        viewTeamProspectsMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewTeamProspectsMenuItemActionPerformed(evt);
            }
        });
        teamMenu.add(viewTeamProspectsMenuItem);

        jMenuBar1.add(teamMenu);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mainDesktopFrame, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 834, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(mainDesktopFrame, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 586, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void addLeagueMenutItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addLeagueMenutItemActionPerformed
        addLeagueFrame.setVisible(true);
    }//GEN-LAST:event_addLeagueMenutItemActionPerformed

    private void addNewLeagueButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addNewLeagueButtonMouseClicked
        dba.newLeague(newLeagueIDTextField.getText(), newLeagueNameTextField.getText(), Float.parseFloat(newLeagueSalaryCapTextField.getText()), Integer.parseInt(newLeagueRosterSizeTextField.getText()));
    }//GEN-LAST:event_addNewLeagueButtonMouseClicked

    private void newScoutingReportHockeySenseTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newScoutingReportHockeySenseTextFieldActionPerformed
        // TODO add your handling code here:NEVER
    }//GEN-LAST:event_newScoutingReportHockeySenseTextFieldActionPerformed

    private void newScoutingReportShotTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newScoutingReportShotTextFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_newScoutingReportShotTextFieldActionPerformed

    private void newScoutingReportSizeTextFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newScoutingReportSizeTextFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_newScoutingReportSizeTextFieldActionPerformed

    private void addScoutingReportButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addScoutingReportButtonMouseClicked
        new java.sql.Date(new java.util.Date().getTime());
        dba.newSkaterScoutingReport(
                Integer.parseInt(newScoutingReportScoutIDTextField.getText()),
                Integer.parseInt(newScoutingReportPlayerIDTextField.getText()),
                Integer.parseInt(newScoutingReportHockeySenseTextField.getText()),
                Integer.parseInt(newScoutingReportPuckhandlingTextField.getText()),
                Integer.parseInt(newScoutingReportDefenseTextField.getText()),
                Integer.parseInt(newScoutingReportShotTextField.getText()),
                Integer.parseInt(newScoutingReportPoiseTextField.getText()),
                Integer.parseInt(newScoutingReportSizeTextField.getText()),
                Integer.parseInt(newScoutingReportLeadershipTextField.getText()),
                Integer.parseInt(newScoutingReportSkatingTextField.getText()),
                Integer.parseInt(newScoutingReportPotentialTextField.getText()),
                new java.sql.Date(new java.util.Date().getTime())
                );
    }//GEN-LAST:event_addScoutingReportButtonMouseClicked

    private void addScoutingReportMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addScoutingReportMenuItemActionPerformed
        addScoutingReportFrame.setVisible(true);
    }//GEN-LAST:event_addScoutingReportMenuItemActionPerformed

    private void retirePlayerMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_retirePlayerMenuItemActionPerformed
        retirePlayerFrame.setVisible(true);
    }//GEN-LAST:event_retirePlayerMenuItemActionPerformed

    private void retirePlayerButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_retirePlayerButtonMouseClicked
        dba.retirePlayer(Integer.parseInt(playerRetirementPlayerIDTextField.getText()));
    }//GEN-LAST:event_retirePlayerButtonMouseClicked

    private void viewScoutingReportMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewScoutingReportMenuItemActionPerformed
        viewScoutingReportFrame.setVisible(true);
    }//GEN-LAST:event_viewScoutingReportMenuItemActionPerformed

    private void getScoutingReportsButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_getScoutingReportsButtonMouseClicked
        dba.getScoutingReports(Integer.parseInt(viewScoutingReportsPlayerIDTextField.getText()));       
    }//GEN-LAST:event_getScoutingReportsButtonMouseClicked

    private void hireStaffMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hireStaffMenuItemActionPerformed
        hireStaffFrame.setVisible(true);
    }//GEN-LAST:event_hireStaffMenuItemActionPerformed

    private void hireStaffButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_hireStaffButtonMouseClicked
        dba.hireStaff(hireStaffTeamIDTextField.getText(),
                Integer.parseInt(hireStaffStaffIDTextField.getText()),
                                  hireStaffYearTextField.getText() + "-" +
                                  hireStaffMonthTextField.getText() + "-" +
                                  hireStaffDayTextField.getText(),
                Integer.parseInt(hireStaffSalaryTextField.getText()));
    }//GEN-LAST:event_hireStaffButtonMouseClicked

    private void viewTeamStaffButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_viewTeamStaffButtonMouseClicked
        dba.viewTeamStaff(viewTeamStaffTeamIDTextField.getText());
    }//GEN-LAST:event_viewTeamStaffButtonMouseClicked

    private void viewTeamStaffMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewTeamStaffMenuItemActionPerformed
        viewTeamStaffFrame.setVisible(true);
    }//GEN-LAST:event_viewTeamStaffMenuItemActionPerformed

    private void updateLeagueSalaryCapMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_updateLeagueSalaryCapMenuItemActionPerformed
        updateLeagueSalaryCapFrame.setVisible(true);
    }//GEN-LAST:event_updateLeagueSalaryCapMenuItemActionPerformed

    private void updateLeagueSalaryCapButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_updateLeagueSalaryCapButtonMouseClicked
        dba.updateLeagueSalaryCap(updateLeagueSalaryIDTextField.getText(),
                                  Integer.parseInt(updateLeagueSalaryCapTextField.getText()));
    }//GEN-LAST:event_updateLeagueSalaryCapButtonMouseClicked

    private void gameReportButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_gameReportButtonActionPerformed
        dba.getGameReport(gameReportAwayTextField.getText(),
                        gameReportHomeTextField.getText(),
                        gameReportYearTextField.getText() + "-" +
                        gameReportMonthTextField.getText() + "-" +
                        gameReportDayTextField.getText()                            
                            );
    }//GEN-LAST:event_gameReportButtonActionPerformed

    private void gameReportMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_gameReportMenuItemActionPerformed
        gameFrame.setVisible(true);
    }//GEN-LAST:event_gameReportMenuItemActionPerformed

    private void playerMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_playerMenuActionPerformed
        filterPlayersFrame.setVisible(true);
    }//GEN-LAST:event_playerMenuActionPerformed

    private void filterPlayersMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_filterPlayersMenuItemActionPerformed
        filterPlayersFrame.setVisible(true);
    }//GEN-LAST:event_filterPlayersMenuItemActionPerformed

    private void getFilteredPlayerReportButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_getFilteredPlayerReportButtonMouseClicked
        dba.filterPlayers(
                Integer.parseInt(filterPlayerHockeySenseTextField.getText()),
                Integer.parseInt(filterPlayerPuckHandlingTextField.getText()),
                Integer.parseInt(filterPlayerDefenseTextField.getText()),
                Integer.parseInt(filterPlayerShotScoringTextField.getText()),
                Integer.parseInt(filterPlayerPoiseTextField.getText()),
                Integer.parseInt(filterPlayerSizeStrengthTextField.getText()),
                Integer.parseInt(filterPlayerLeadershipTextField.getText()),
                Integer.parseInt(filterPlayerSkatingTextField.getText()),
                Integer.parseInt(filterPlayerPotentialTextField.getText())
                );
        playerReportFrame.setVisible(true);
    }//GEN-LAST:event_getFilteredPlayerReportButtonMouseClicked

    private void viewTeamScoutingAbilitiesButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_viewTeamScoutingAbilitiesButtonMouseClicked
        dba.viewTeamScoutingAbilities(
                viewTeamScoutingAbilitiesTeamIDTextField.getText()
                );
    }//GEN-LAST:event_viewTeamScoutingAbilitiesButtonMouseClicked

    private void viewTeamScoutingAbilitiesFrameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewTeamScoutingAbilitiesFrameActionPerformed
        viewTeamScoutingAbilitiesFrame1.setVisible(true);
    }//GEN-LAST:event_viewTeamScoutingAbilitiesFrameActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        dba.getNHLTeamAffiliations();
        NHLTeamAffiliationsFrame.setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void viewTeamRosterMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewTeamRosterMenuItemActionPerformed
        viewTeamRosterFrame.setVisible(true);
    }//GEN-LAST:event_viewTeamRosterMenuItemActionPerformed

    private void getRosterButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_getRosterButtonMouseClicked
        dba.getTeamRoster(
                viewTeamRosterIDTextField.getText()
                );
    }//GEN-LAST:event_getRosterButtonMouseClicked

    private void getProspectsButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_getProspectsButtonMouseClicked
        dba.getTeamProspects(
                viewTeamProspectsIDTextField.getText()
                );
    }//GEN-LAST:event_getProspectsButtonMouseClicked

    private void freeAgentsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_freeAgentsMenuItemActionPerformed
        dba.getFreeAgents();
        freeAgentsFrame.setVisible(true);
    }//GEN-LAST:event_freeAgentsMenuItemActionPerformed

    private void viewTeamProspectsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewTeamProspectsMenuItemActionPerformed
        viewTeamProspectsFrame.setVisible(true);
    }//GEN-LAST:event_viewTeamProspectsMenuItemActionPerformed

    private void playerSearchMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_playerSearchMenuItemActionPerformed
        playerSearchFrame.setVisible(true);
    }//GEN-LAST:event_playerSearchMenuItemActionPerformed

    private void playerSearchButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_playerSearchButtonMouseClicked
        dba.playerSearch(playerSearchTextField.getText());
    }//GEN-LAST:event_playerSearchButtonMouseClicked

    private void gameSearchButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_gameSearchButtonMouseClicked
        dba.gameSearch(
                gameSearchTextField.getText()
                );
    }//GEN-LAST:event_gameSearchButtonMouseClicked

    private void gameSearchMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_gameSearchMenuItemActionPerformed
        gameSearchFrame.setVisible(true);
    }//GEN-LAST:event_gameSearchMenuItemActionPerformed

    private void leagueTeamsButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_leagueTeamsButtonMouseClicked
        dba.getLeagueTeams(
                leagueTeamsTextField.getText()
                );
    }//GEN-LAST:event_leagueTeamsButtonMouseClicked

    private void leagueMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_leagueMenuActionPerformed
        
    }//GEN-LAST:event_leagueMenuActionPerformed

    private void showLeagueTeamsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showLeagueTeamsMenuItemActionPerformed
        leagueTeamsFrame.setVisible(true);
    }//GEN-LAST:event_showLeagueTeamsMenuItemActionPerformed

    private void showLeaguesMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showLeaguesMenuItemActionPerformed
        dba.getLeagues();
        showLeagueFrame.setVisible(true);
    }//GEN-LAST:event_showLeaguesMenuItemActionPerformed

    private void scoutMenuActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_scoutMenuActionPerformed
        
    }//GEN-LAST:event_scoutMenuActionPerformed

    private void showScoutsMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showScoutsMenuItemActionPerformed
        dba.getScouts();
        showScoutsFrame.setVisible(true);
    }//GEN-LAST:event_showScoutsMenuItemActionPerformed

    private void showPlayerMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showPlayerMenuItemActionPerformed
        dba.showAllPlayers();
        showAllPlayersFrame.setVisible(true);
    }//GEN-LAST:event_showPlayerMenuItemActionPerformed

    private void showAllGamesMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showAllGamesMenuItemActionPerformed
        dba.getAllGames();
        showAllGamesFrame.setVisible(true);
    }//GEN-LAST:event_showAllGamesMenuItemActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new uberGUI().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JInternalFrame NHLTeamAffiliationsFrame;
    private javax.swing.JTextArea NHLTeamAffiliationsTextArea;
    private javax.swing.JInternalFrame addLeagueFrame;
    private javax.swing.JMenuItem addLeagueMenutItem;
    private javax.swing.JButton addNewLeagueButton;
    private javax.swing.JButton addScoutingReportButton;
    private javax.swing.JInternalFrame addScoutingReportFrame;
    private javax.swing.JMenuItem addScoutingReportMenuItem;
    private javax.swing.JTextField filterPlayerDefenseTextField;
    private javax.swing.JTextField filterPlayerHockeySenseTextField;
    private javax.swing.JTextField filterPlayerLeadershipTextField;
    private javax.swing.JTextField filterPlayerPoiseTextField;
    private javax.swing.JTextField filterPlayerPotentialTextField;
    private javax.swing.JTextField filterPlayerPuckHandlingTextField;
    private javax.swing.JTextField filterPlayerShotScoringTextField;
    private javax.swing.JTextField filterPlayerSizeStrengthTextField;
    private javax.swing.JTextField filterPlayerSkatingTextField;
    private javax.swing.JInternalFrame filterPlayersFrame;
    private javax.swing.JMenuItem filterPlayersMenuItem;
    private javax.swing.JInternalFrame freeAgentsFrame;
    private javax.swing.JMenuItem freeAgentsMenuItem;
    private javax.swing.JTextArea freeAgentsTextArea;
    private javax.swing.JInternalFrame gameFrame;
    private javax.swing.JMenu gameMenu;
    private javax.swing.JTextField gameReportAwayTextField;
    private javax.swing.JButton gameReportButton;
    private javax.swing.JTextField gameReportDayTextField;
    private javax.swing.JTextField gameReportHomeTextField;
    private javax.swing.JMenuItem gameReportMenuItem;
    private javax.swing.JTextField gameReportMonthTextField;
    private javax.swing.JTextArea gameReportTextArea;
    private javax.swing.JTextField gameReportYearTextField;
    private javax.swing.JButton gameSearchButton;
    private javax.swing.JInternalFrame gameSearchFrame;
    private javax.swing.JMenuItem gameSearchMenuItem;
    private javax.swing.JTextArea gameSearchTextArea;
    private javax.swing.JTextField gameSearchTextField;
    private javax.swing.JButton getFilteredPlayerReportButton;
    private javax.swing.JButton getProspectsButton;
    private javax.swing.JButton getRosterButton;
    private javax.swing.JButton getScoutingReportsButton;
    private javax.swing.JButton hireStaffButton;
    private javax.swing.JTextField hireStaffDayTextField;
    private javax.swing.JInternalFrame hireStaffFrame;
    private javax.swing.JMenuItem hireStaffMenuItem;
    private javax.swing.JTextField hireStaffMonthTextField;
    private javax.swing.JTextField hireStaffSalaryTextField;
    private javax.swing.JTextField hireStaffStaffIDTextField;
    private javax.swing.JTextField hireStaffTeamIDTextField;
    private javax.swing.JTextField hireStaffYearTextField;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuBar jMenuBar2;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JMenu leagueMenu;
    private javax.swing.JButton leagueTeamsButton;
    private javax.swing.JInternalFrame leagueTeamsFrame;
    private javax.swing.JTextArea leagueTeamsTextArea;
    private javax.swing.JTextField leagueTeamsTextField;
    private javax.swing.JDesktopPane mainDesktopFrame;
    private javax.swing.JTextField newLeagueIDTextField;
    private javax.swing.JTextField newLeagueNameTextField;
    private javax.swing.JTextField newLeagueRosterSizeTextField;
    private javax.swing.JTextField newLeagueSalaryCapTextField;
    private javax.swing.JTextField newScoutingReportDefenseTextField;
    private javax.swing.JTextField newScoutingReportHockeySenseTextField;
    private javax.swing.JTextField newScoutingReportLeadershipTextField;
    private javax.swing.JTextField newScoutingReportPlayerIDTextField;
    private javax.swing.JTextField newScoutingReportPoiseTextField;
    private javax.swing.JTextField newScoutingReportPotentialTextField;
    private javax.swing.JTextField newScoutingReportPuckhandlingTextField;
    private javax.swing.JTextField newScoutingReportScoutIDTextField;
    private javax.swing.JTextField newScoutingReportShotTextField;
    private javax.swing.JTextField newScoutingReportSizeTextField;
    private javax.swing.JTextField newScoutingReportSkatingTextField;
    private javax.swing.JMenu playerMenu;
    private javax.swing.JInternalFrame playerReportFrame;
    private javax.swing.JTextArea playerReportTextArea;
    private javax.swing.JTextField playerRetirementPlayerIDTextField;
    private javax.swing.JButton playerSearchButton;
    private javax.swing.JInternalFrame playerSearchFrame;
    private javax.swing.JMenuItem playerSearchMenuItem;
    private javax.swing.JTextArea playerSearchTextArea;
    private javax.swing.JTextField playerSearchTextField;
    private javax.swing.JButton retirePlayerButton;
    private javax.swing.JInternalFrame retirePlayerFrame;
    private javax.swing.JMenuItem retirePlayerMenuItem;
    private javax.swing.JMenu scoutMenu;
    private javax.swing.JInternalFrame showAllGamesFrame;
    private javax.swing.JMenuItem showAllGamesMenuItem;
    private javax.swing.JTextArea showAllGamesTextArea;
    private javax.swing.JInternalFrame showAllPlayersFrame;
    private javax.swing.JTextArea showAllPlayersTextArea;
    private javax.swing.JInternalFrame showLeagueFrame;
    private javax.swing.JMenuItem showLeagueTeamsMenuItem;
    private javax.swing.JMenuItem showLeaguesMenuItem;
    private javax.swing.JTextArea showLeaguesTextArea;
    private javax.swing.JMenuItem showPlayerMenuItem;
    private javax.swing.JInternalFrame showScoutsFrame;
    private javax.swing.JMenuItem showScoutsMenuItem;
    private javax.swing.JTextArea showScoutsTextArea;
    private javax.swing.JMenu teamMenu;
    private javax.swing.JButton updateLeagueSalaryCapButton;
    private javax.swing.JInternalFrame updateLeagueSalaryCapFrame;
    private javax.swing.JMenuItem updateLeagueSalaryCapMenuItem;
    private javax.swing.JTextField updateLeagueSalaryCapTextField;
    private javax.swing.JTextField updateLeagueSalaryIDTextField;
    private javax.swing.JInternalFrame viewScoutingReportFrame;
    private javax.swing.JMenuItem viewScoutingReportMenuItem;
    private javax.swing.JTextField viewScoutingReportsPlayerIDTextField;
    private javax.swing.JTextArea viewScoutingReportsTextArea;
    private javax.swing.JInternalFrame viewTeamProspectsFrame;
    private javax.swing.JTextField viewTeamProspectsIDTextField;
    private javax.swing.JMenuItem viewTeamProspectsMenuItem;
    private javax.swing.JTextArea viewTeamProspectsTextArea;
    private javax.swing.JInternalFrame viewTeamRosterFrame;
    private javax.swing.JTextField viewTeamRosterIDTextField;
    private javax.swing.JMenuItem viewTeamRosterMenuItem;
    private javax.swing.JTextArea viewTeamRosterTextArea;
    private javax.swing.JButton viewTeamScoutingAbilitiesButton;
    private javax.swing.JMenuItem viewTeamScoutingAbilitiesFrame;
    private javax.swing.JInternalFrame viewTeamScoutingAbilitiesFrame1;
    private javax.swing.JTextField viewTeamScoutingAbilitiesTeamIDTextField;
    private javax.swing.JTextArea viewTeamScoutingAbilitiesTextArea;
    private javax.swing.JButton viewTeamStaffButton;
    private javax.swing.JInternalFrame viewTeamStaffFrame;
    private javax.swing.JMenuItem viewTeamStaffMenuItem;
    private javax.swing.JTextField viewTeamStaffTeamIDTextField;
    private javax.swing.JTextArea viewTeamStaffTextArea;
    // End of variables declaration//GEN-END:variables

    public void update(Observable o, Object arg) {
        Message msg = (Message)arg;
        if (msg.getType().equals("success"))
        {
            JOptionPane.showMessageDialog(mainDesktopFrame,
                                          msg.getMessage().toString(),
                                          "Success",
					  JOptionPane.INFORMATION_MESSAGE);
        }
        else if (msg.getType().equals("error"))
        {
            JOptionPane.showMessageDialog(mainDesktopFrame,
                                          msg.getMessage().toString(),
                                          "Error",
					  JOptionPane.ERROR_MESSAGE);
        }
        else if (msg.getType().equals("scoutingReport"))
        {
            viewScoutingReportsTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("teamStaff"))
        {
            viewTeamStaffTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("teamScouts"))
        {
            viewTeamScoutingAbilitiesTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("gameReport"))
        {
            gameReportTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("playerReport"))
        {
            playerReportTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("NHLTeamAffiliations"))
        {
            NHLTeamAffiliationsTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("teamRoster"))
        {
            viewTeamRosterTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("teamProspects"))
        {
            viewTeamProspectsTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("freeAgents"))
        {
            freeAgentsTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("playerSearch"))
        {
            playerSearchTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("gameSearch"))
        {
            gameSearchTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("leagueTeamSearch"))
        {
            leagueTeamsTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("leagues"))
        {
            showLeaguesTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("scouts"))
        {
            showScoutsTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("allPlayers"))
        {
            showAllPlayersTextArea.setText(msg.getMessage().toString());
        }
        else if (msg.getType().equals("allGames"))
        {
            showAllGamesTextArea.setText(msg.getMessage().toString());
        }

    }

    public void gameReportHomeTextFieldActionPerformed(java.awt.event.ActionEvent evt){}

    public void gameReportDayTextFieldActionPerformed(java.awt.event.ActionEvent evt){}

}
